home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / AlignStyle.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  1.0 KB  |  42 lines

  1. package symantec.itools.awt;
  2.  
  3. /**
  4.  * AlignStyle is an interface for components with labels that can be 
  5.  * aligned left, centered, or right.
  6.  * @author Symantec
  7.  */
  8. public interface AlignStyle
  9. {
  10.     //--------------------------------------------------
  11.     // constants
  12.     //--------------------------------------------------
  13.  
  14.     /**
  15.      * Defines the "left" label text alignment.
  16.      */
  17.     public static final int ALIGN_LEFT = 0;
  18.  
  19.     /**
  20.      * Defines the "center" label text alignment.
  21.      */
  22.     public static final int ALIGN_CENTERED = 1;
  23.  
  24.     /**
  25.      * Defines the "right" label text alignment.
  26.      */
  27.     public static final int ALIGN_RIGHT = 2;
  28.  
  29.  
  30.     //--------------------------------------------------
  31.     // methods
  32.     //--------------------------------------------------
  33.  
  34.     /**
  35.      * Sets the new label alignment style.
  36.      */
  37.     public void setAlignStyle(int style);
  38.     /**
  39.      * Gets the current label alignment style.
  40.      */
  41.     public int getAlignStyle();
  42. }